*{
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
    text-decoration: none;
}
img{
    display: block;
}
.banner{
    width: 600px;
    height: 400px;
    position: relative;
    margin: 30px auto 0;
    overflow: hidden;
}

.pics{
    position: relative;
    width: 100%;
    height: 100%;
}

.pics li{
    position: absolute;
    left:0;
    top: 0;
    transition: opacity .5s linear;
    opacity: 0;
}

.pics li p{
    width: 100%;
    left: 0;
    top: 0;
    background: rgba(0,0,0,.5);
    color: #FFF;
    position: absolute;
    height: 40px;
    line-height: 40px;
    text-align: center;
}
.opacity{
    opacity: 1!important;
}

.tabs{
    position: absolute;
    bottom: 30px;
    display: flex;
    width: 100%;
    justify-content: center;
}
.tabs span{
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    margin: 0 10px;
}
.active{
    background: red!important;
}

.btn{
    position: absolute;
    width: 30px;
    height: 60px;
    background: rgba(0,0,0,.5);
    line-height: 60px;
    color: #FFF;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    transition:.2s linear;
}

.prev{
    left: -30px;
}

.next{
    right: -30px;
}
.banner:hover .prev{
    left: 0;
}

.banner:hover .next{
    right: 0;
}